package com.duochuang.verifycard.exception;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

/**
 * 接口返回
 */
@JsonIgnoreProperties(value = { "stackTrace", "cause", "data", "message", "localizedMessage", "suppressed" })
@Data
public class InterfaceException extends Exception {

    /**  ret=0 受理，正在充值。其他为失败，以下为失败时返回的错误码
     20	缺少参数，或者参数类型错误
     23	签名认证不通过
//     26	充值卡卡号有误
     27	平台余额不充足,请充值
     *
     */
    private Integer status;

    private String msg;

    private String data;

    public InterfaceException() {
    }

    public InterfaceException(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
